#ifndef LEVENT_H
#define LEVENT_H
#include <QObject>
#include <QEvent>
#include <QVariant>

void QPostMessage(QObject* obj, int msg, QVariant params);
long QSendMessage(QObject* obj, int msg, QVariant params);


static long s_rst = 0;
class LEvent : public QObject, public QEvent
{
public:
    LEvent(int msg, const QVariant params = QVariant(), long& rst = s_rst);
    ~LEvent();

public:
    static Type m_eventType;

    int m_message = 0;
    QVariant m_params;
    long& m_rst;
};
#endif // LEVENT_H
